
<!-- Responsive Table -->
<div class="row">
    <div class="col-md-12">

        <div class="panel panel-default">
          
          
          
          

   

          
          
          
            <div class="panel-heading">

                  <!--标题-->         
               <div class="caption font-green bold">
                        <span class="am-icon-code"></span> APP设置管理
                    </div>
    <!--标题-->
              
              
              
                <div class="panel-options">


                    <a href="#" data-toggle="panel">
                        <span class="collapse-icon">&ndash;</span>
                        <span class="expand-icon">+</span>
                    </a>

                    <a href="#" data-toggle="reload">
                        <i class="fa-rotate-right"></i>
                    </a>

                    <a href="#" data-toggle="remove">
                        &times;
                    </a>
                </div>
            </div>
            <div class="panel-body">
                <div class="table-responsive" data-pattern="priority-columns" data-focus-btn-icon="fa-asterisk"
                     data-sticky-table-header="true" data-add-display-all-btn="true" data-add-focus-btn="true">

                    <div class="btn-toolbar">
                        <div class="btn-group focus-btn-group">
                            <a href="{:url('banner/add')}">
                                <button class="btn btn-default"><i class="el-pencil"></i> 添加</button>
                            </a>
                        </div>
                       


                       <!-- <div class="btn-group dropdown-btn-group pull-right">
                            <?php if(session('power')=='0'){?>
                            <a href="javascript:;" onclick="del('')" class=btn-single">
                                <button class="btn btn-danger" ><i class="el-cancel-circled2"></i>批量删除
                                </button>
                            </a>
                            <?php }?>

                        </div>
                        -->
                    </div>

  <div class="table-responsive" data-pattern="priority-columns" data-focus-btn-icon="fa-asterisk"
                     data-sticky-table-header="true" data-add-display-all-btn="true" data-add-focus-btn="true">
                    <table cellspacing="0" class="table table-small-font table-bordered table-striped">
                        <thead>
                        <tr>
						    <th style="width: 120px">图片</th>
                            <th>标题</th>
                            <th>描述</th>  
                            <th>跳转地址</th>
                            <th>排序</th>                        
                            <th style="width: 150px">操作</th>

                        </tr>
                        </thead>
                        <tbody>
                        {volist name="list" id="vo"}
                        <tr>
						     <th >
                                <img style="width: 100%; height:auto" src="{$vo.picurl}">
                            </th>
                            <th >
                                {$vo.name}
                            </th>
                            <th >
                                {$vo.content}
                            </th>

                            <th >
                                {$vo.linkurl}
                            </th>
                            <th>
                                {$vo.sort}
                            </th>
                           <th style=" text-align: center;"> <a href="{:url('banner/update',['id'=>$vo['id']])}" title="修改" > <i class="el-edit" style="font-size: 18px;color: #68b828"></i></a>
                               &nbsp;
                               <a href="{:url('banner/del',['id'=>$vo['id']])}" title="删除" class=btn-single"><i class="el-trash-circled" style="font-size: 18px;color:#cc3f44"></i></a></th>

                            </td>

                        </tr>
                        {/volist}
                        </tbody>
                    </table>
</div>
                    {$list->render()}

                </div>

            </div>


        </div>

    </div>


</div>

{$code=='0'?'
<div class="col-md-6">
    <div class="alert alert-danger" id="alert" style="position:fixed;right:0px;bottom:0px;  width: 350px">
        <button type="button" class="close" data-dismiss="alert">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>
        <strong> 糟糕 !</strong> '.$msg.'
    </div>
</div>

':''}
{$code=='1'?'
<div class="col-md-6" id="alert" style="position:fixed;right:0px;bottom:0px;  width: 350px">
    <div class="alert alert-success">
        <button type="button" class="close" data-dismiss="alert">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>

        <strong>恭喜 !</strong> '.$msg.'.
    </div>
</div>

':''}
